// 优惠券类型定义
export interface DiscountInfo {
  discountId?: number;
  discountName?: string;
  discountType?: 'SHOP' | 'PRODUCT' | '会员' | '官方';
  productId?: number;
  description?: string;
  discountValue?: number;
  startDate?: Date;
  endDate?: Date;
  maxUserClaims?: number;
  createdAt?: Date;
  updatedAt?: Date;
  status?: boolean; // 根据后端1/0状态转换
  discountStrategy:number,
  fullReduction:number
  discountNum:number
}

// 创建优惠券参数
export type CreateDiscountParams = Omit<DiscountInfo, 'discountId' | 'status'> & {
  maxUserClaims: number;
};

// 分页查询参数
export interface DiscountQueryParams {
  discountType?: string;
  shopId?: number;
  productId?: number;
  page: number;
  size: number;
  status?:number
}
